package com.cart.service;

import com.common.domain.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Elias
 * @version 1.0
 * @date 2021-06-02 11:19
 * @description
 * @copyright 2021
 */
@FeignClient(name = "product")
public interface ProductService {
  /**
   * 商品查询
   * @param productId 商品id
   * @return 查询的商品
   */
  @RequestMapping(value = "/manage/item/{productId}")
  @ResponseBody
  Product queryProduct(@PathVariable("productId") String productId);
}
